<?php

namespace App\Repositories;

use App\Models\ParkData;
use InfyOm\Generator\Common\BaseRepository;

/**
 * Class ParkDataRepository
 * @package App\Repositories
 * @version January 4, 2018, 2:39 am UTC
 *
 * @method ParkData findWithoutFail($id, $columns = ['*'])
 * @method ParkData find($id, $columns = ['*'])
 * @method ParkData first($columns = ['*'])
*/
class ParkDataRepository extends BaseRepository
{
    /**
     * @var array
     */
    protected $fieldSearchable = [
        'vpl_number',
        'pay_type',
        'type',
        'vpl_owner',
        'park_code',
        'in_time'=>'>=',
        'out_time'=>'<=',
        'park_duration',
        'note',
        'user_id',
        'username'
    ];

    /**
     * Configure the Model
     **/
    public function model()
    {
        return ParkData::class;
    }
}
